﻿using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;

namespace MicrosoftToDo.Models;

/// <summary>
/// 任务模块
/// </summary>
public partial class TaskItem :ObservableObject
{
    public string Id { get; set; }
    /// <summary>
    /// 模块名称
    /// </summary>
    public string Title { get; set; }
    /// <summary>
    /// 日期
    /// </summary>
    public string Date { get; set; }

    /// <summary>
    /// 背景颜色
    /// </summary>
    [ObservableProperty] private string _background;

    /// <summary>
    /// 描述
    /// </summary>
    [ObservableProperty]private string _desc;
    /// <summary>
    /// 任务列表
    /// </summary>
    [ObservableProperty] private ObservableCollection<TaskInfo> tasks;
}